package c.x.jy.bean.event.listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;

import c.x.jy.bean.event.OrderLogEvent;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Component
public class OrderLogListener {
 
	 
		@Async 
		@EventListener
		public void paySuccess(OrderLogEvent  orderEvent) {
			System.out.println(JSON.toJSONString(orderEvent));
			System.out.println("写入订单日志");   
	 
		}
}
